/* @(#)GSProvinceBean.java    
 *
 * Project: BUS
 *
 * Modify Information:
 * =============================================================================
 *   Author       Date       Description
 *   ------------ ---------- ---------------------------------------------------
 *   Jenny Li     2006-2-11    新增
 *
 * Copyright Notice:
 * =============================================================================
 *    Copyright (c) 2001-2006 Beijing HiTRUST Technology Co., Ltd. 1808 Room, 
 *        Science & Technology Building, No. 9 South Street, Zhong Guan Cun, 
 *        Haidian District, Beijing ,100081, China All rights reserved.
 *
 *    This software is the confidential and proprietary information of
 *        Beijing HiTRUST Technology Co., Ltd. ("Confidential Information").
 *        You shall not disclose such Confidential Information and shall use it
 *        only in accordance with the terms of the license agreement you entered
 *        into with HiTRUST.
 *
 * Warning:
 * =============================================================================
 * 
 */
package com.hitrust.gs.bean;

import java.sql.ResultSet;
import java.sql.SQLException;

import com.hitrust.gs.service.GSBaseBean;

/**
 * 全国的省信息
 */
public class GSProvinceBean implements GSBaseBean {
    /**
     * 省代码
     */
    private String gs_province_code;
    /**
     * 省名称
     */
    private String gs_province_name;
    /**
     * 省英文名称
     */
    private String gs_en_province_name;
    
    /**
     * @return Returns the gs_en_province_name.
     */
    public String getGs_en_province_name() {
        return this.gs_en_province_name;
    }

    /**
     * @param aGs_en_province_name The gs_en_province_name to set.
     */
    public void setGs_en_province_name(String aGs_en_province_name) {
        this.gs_en_province_name = aGs_en_province_name;
    }

    /**
     * @return Returns the gs_province_code.
     */
    public String getGs_province_code() {
        return this.gs_province_code;
    }

    /**
     * @param aGs_province_code The gs_province_code to set.
     */
    public void setGs_province_code(String aGs_province_code) {
        this.gs_province_code = aGs_province_code;
    }

    /**
     * @return Returns the gs_province_name.
     */
    public String getGs_province_name() {
        return this.gs_province_name;
    }

    /**
     * @param aGs_province_name The gs_province_name to set.
     */
    public void setGs_province_name(String aGs_province_name) {
        this.gs_province_name = aGs_province_name;
    }

    public Object process(ResultSet aResultSet) throws SQLException {
        GSProvinceBean tGSProvinceBean = new GSProvinceBean();
        tGSProvinceBean.gs_province_code = aResultSet.getString("GS_PROVINCE_CODE").trim();
        tGSProvinceBean.gs_province_name = aResultSet.getString("GS_PROVINCE_NAME").trim();
        tGSProvinceBean.gs_en_province_name = aResultSet.getString("GS_EN_PROVINCE_NAME")==null?"":aResultSet.getString("GS_EN_PROVINCE_NAME").trim();
        return tGSProvinceBean;
    }

}
